<!-- common start -->
#include("common.html")
<!-- common end -->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,user-scalable=0,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<title>首页</title>
<link type="text/css" href="#(tpath)/static/css/css.css" rel="stylesheet"  />
<script type="text/javascript" src="#(tpath)/static/js/jquery.min.js"></script>
<script type="text/javascript" src="#(tpath)/static/js/global.js"></script>
<script type="text/javascript" src="#(tpath)/static/js/slide_show.js"></script>
</head>
<body>
<div id="wrapper">
	 <div id="header">
	   <em class="logo">#(config.siteName)</em>
	   <em></em>
	   <a href="#" onclick='$("#catalog").toggle();' class="siteMap"></a>
	</div>
	
	<div id="catalog" style="display: none;" >
	  <ul>
	    #category_root_list()
	         #for(category : categorys)
	             <li><a href="#(category.path)" #if(category.type==3) target="_blank" #end>#(category.name)</a></li>
	         #end
	    #end
	   </ul>
	</div>
 <div id="index">
  <div class="slideShow">
 <ul class="slides">
    #ad_position(id="1")
	    #for(ad : adPosition.ads)
	    <li><a href="#" target="_blank"><img src="#(ad.image)"/></a></li>
	    #end
    #end
   </ul>
</div>
<script type="text/javascript">

$(document).ready(function(){
 $('.slides').bxSlider({
 });
})

</script>
<div id="mainNav">
   <ul>
         #category_root_list()
	         #for(category : categorys)
	         <li><a href="#(category.path)" #if(category.type==3) target="_blank" #end>#(category.name)</a></li>
	         #end
         #end
       </ul>
  </div>
<!-- 产品 -->
#category(id=1)
  <div class="incBox">
 <h3><a href="#(category.path)" class="more">查看更多商品 ></a>产品展示</h3>
 <div class="productList">
 #content_list(categoryId=category.id,count=4)
 #for(content : contents)
  <dl>
	   <dd>
	       <p class="img"><a href="#(content.path)"><img src="#(content.image)" width="135" height="135" /></a></p>
	       <p class="name"><a href="#(content.path)">#(abbreviate(content.title,5,"..."))</a></p>
	   </dd>
  </dl>
  #end
  #end
 </div >
</div>
#end
<!-- 文章 -->
#category(id=2)
<div class="incBox">
 <h3><a href="#(category.path)" class="more">查看更多文章 ></a></h3>
 <div class="articleList">
    #content_list(categoryId=category.id,count=4)
    #for(content : contents)
     <dl>
        <dt><a href="#(content.path)">#(abbreviate(content.title,5,"..."))</a></dt>
        <dd><em>发布时间：#date(content.createDate,"yyyy-MM-dd")</em><em>点击数：#(content.hits)</em></dd>
     </dl> 
    #end
    #end
</div>
</div>
#end

 </div>
<!-- footer start -->
#include("footer.html")
<!-- footer end -->
</div>
</body>
</html>